namespace Beauty.Net.Cache.Core;

/// <summary>
/// 缓存配置选项
/// </summary>
public class CacheOptions
{
    /// <summary>
    /// 缓存类型
    /// </summary>
    public CacheType CacheType { get; set; } = CacheType.Memory;

    /// <summary>
    /// Redis连接字符串
    /// </summary>
    public string? RedisConnectionString { get; set; }

    /// <summary>
    /// 默认过期时间（分钟）
    /// </summary>
    public int DefaultExpireMinutes { get; set; } = 30;
}

/// <summary>
/// 缓存类型枚举
/// </summary>
public enum CacheType
{
    /// <summary>
    /// 内存缓存
    /// </summary>
    Memory,

    /// <summary>
    /// Redis缓存
    /// </summary>
    Redis
}